/**
 * Created by Administrator on 2018/3/26 0026.
 */
import ax from './api'

// 获取用户信息
export function getUser () {
  return ax.get('/')
    .then(res => res.data)
}
//登录
export function login (formData) {
  return ax.post('/login',formData)
    .then(res => res.data)
}
//注册
export function resgister (formData) {
  return ax.post('/resgister',formData)
    .then(res => res.data)
}
